:root {
	--primary-color: #31c27c;
}
body {
	margin: 0;
	background: #f5f5f5;
	font-family: Microsoft Yahei;
	font-size: 14px;
	min-width: 1000px;
}
a {
	text-decoration: none;
	color: #000;
}
header {
	height: 90px;
	background: white;
	display: flex;
	align-items: center;
}

.header-inner,
main {
	width: 1200px;
	margin: auto;
}

.tag-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 0;
}
.tag-title {
	margin-bottom: 20px;
	font-size: 32px;
	font-family: Microsoft YaHei;
	font-weight: bold;
}
.tag-header nav {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	gap: 20px;
	white-space: nowrap;
	cursor: pointer;
}
.tag-header nav a {
	padding: 5px 10px;
	transition: color 0.2s;
}
.tag-header nav a.tt-active {
	color: #31c27c;
}
.tag-header nav a:hover {
	color: #31c27c;
}




/* 新增：横向滚动歌单容器 */
.recommend-playlist {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 20px 0;
	margin-top: 20px;
	width: 100%;
}

.recommend-playlist::-webkit-scrollbar {
	height: 6px;
}
.recommend-playlist::-webkit-scrollbar-track {
	background: #f1f1f1;
}
.recommend-playlist::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}
.recommend-playlist::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* 修改专辑项样式 */
.recommend-playlist .album {
	flex: 0 0 auto;
	width: 200px;
}

.playlist .album {
	width: 100%;
}

.album {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.album:hover {
	transform: translateY(-5px);
}

.tag-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 50px;
	margin-bottom: 15px;
	flex-direction: column;
}

.tag-list nav {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	gap: 20px;
	white-space: nowrap;
	cursor: pointer;
}
.tag-list nav a {
	padding: 5px 10px;
	transition: color 0.2s;
}

/* 极小范围：在 mid-playlist 前的单行播放全部按钮（不会影响其他布局） */
.inline-play-all{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	margin: -10px 0 10px 0; /* 与上下元素保持距离 */
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	color: #333;
	font-size: 14px;
	text-decoration: none;
}
.inline-play-all svg{color:#666}

/* 保证该类为局部样式，不会影响其他通用按钮 */







.mid-playlist {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: start;
}

.mid-playlist .album {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 12px;

	padding: 12px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(20, 20, 30, 0.06);
	align-items: center;
}

.mid-playlist .album .cover-wrap{
	width: 88px;
	height: 88px;
	border-radius: 6px;
	overflow: hidden;
	background: linear-gradient(135deg, #e9eef6, #f6eef2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mid-playlist .album .cover-play {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mid-playlist .album .media  {
					display: flex;
				flex-direction: column;
				gap: 6px;
				min-width: 0;
}

.mid-playlist .album .media .album-title {
				margin: 0;
				font-size: 15px;
				font-weight: 600;
				white-space: nowrap;
				text-overflow: ellipsis;
				overflow: hidden;
}
.mid-playlist .album .media .album-author {
		margin: 0;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.mid-playlist .album .media .album-time {

	margin-top: 6px;
	font-size: 12px;
	color: var(--muted);
	align-self: flex-start;
	background: #f0f4f8;
	padding: 4px 8px;
	border-radius: 999px;
}















.tag-item {
	display: inline-block;
	flex-direction: row;
	padding: 0 8px;
	margin-right: 24px;
	line-height: 26px;
	color: #000;
	text-decoration: none;
	text-align: center;
}
.tag-active {
	color: #31c27c;
}
.tag-item:not(.tag-active):hover {
	color: var(--primary-color);
}
.nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.playlist {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 45px 15px;
	margin-bottom: 45px;
}
.cover-wrap {
	display: flex;
	position: relative;
	overflow: hidden;
	width: 100%;
	margin-bottom: 15px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.cover-img {
	width: 100%;
	transition: all 0.75s;
}
.cover-mask {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: #000;
	opacity: 0;
	transition: all 0.5s;
}
.cover-play {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -35px;
	margin-top: -35px;
	opacity: 0;
	transform: scale(0.7);
	transition: all 0.5s;
}
.cover-wrap:hover .cover-mask {
	opacity: 0.2;
}
.cover-wrap:hover .cover-play {
	opacity: 1;
	transform: scale(1);
}
.cover-wrap:hover .cover-img {
	transform: scale(1.07);
}
.album-title {
	display: block;
	padding: 0 10px;
	margin-bottom: 5px;
	font-weight: bold;
}
.album-title:hover {
	color: var(--primary-color);
}
.album-author {
	color: #999;
	line-height: 1.6;
	padding: 0 10px;
	margin-bottom: 5px;
}
.album-author:hover {
	color: var(--primary-color);
}
.album-time {
	color: #999;
	padding: 0 10px 10px;
}
.page {
	display: flex;
	align-items: center;
	justify-content: center;
}
.page-item {
	display: inline-block;
	color: #a2a2a2;
	line-height: 50px;
	padding: 0 20px;
	margin: 10px;
	font-size: 16px;
}
.page-current,
.page-item:not(.page-more):hover {
	background: var(--primary-color);
	color: white;
}
footer {
	margin-top: 60px;
	background: #333;
	height: 200px;
}

.final-playlist {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	align-items: start;
	margin-bottom: 60px;
}


.final-playlist .album {
	/* 给 final-playlist 的每项设定高度，这样内部使用百分比高度才有参考基准 */
	height: 208px;
	border-radius: 6px;
	overflow: hidden;
	background: linear-gradient(135deg, #e9eef6, #f6eef2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.final-playlist .album .cover-wrap{
	width: 100%;
	/* 按父元素高度的百分比来占比（父元素已有固定高度） */
	height: 50%;
	overflow: hidden;
}

/* object-fit 应用于 img 元素（替换元素），而不是 a.link 本身 */
.final-playlist .album .cover-wrap .cover-img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
